package com.hnas.ecard.domain;

import java.util.HashMap;
import java.util.Map;

public class BusinessType {
	public static final String sendECard = "1";
	public static final String receiveOrRefuseECard = "2";
	public static final String backCardApply = "3";
	public static final String checkCardSecretKey = "4";
	public static final String cancelGiveECard = "5";
	public static final String autoReturnECard = "6";
	
	private static Map<String, String> map = new HashMap<String, String>();

	static {
		map.put(sendECard, "赠送电子卡");
		map.put(receiveOrRefuseECard, "领取或拒绝电子卡");
		map.put(backCardApply, "电子卡退卡申请");
		map.put(checkCardSecretKey, "电子卡卡号秘钥校验");
		map.put(cancelGiveECard, "取消赠送电子卡");
		map.put(autoReturnECard, "过期自动回退电子卡");
	}

	public static String getBusinessTypeString(String type) {
		return map.get(type);
	}

	public static Map<String, String> getBusinessTypeMap() {
		return map;
	}
}
